package com.bookshop.logicComponent;

import java.util.Date;

public class Book {
	public String id;
	public String name;
	public String ISBN;
	public String author;
	public String press;
	public Date publishDate;
	public double price;
	public String description;
	public String category;
	public int num;
	public byte[] image;
	
	public Book( String id, String name, String author,String press, String ISBN,
			String category, Date publishDate, double price,
			String description, int num,byte[] image) {
		this.category = category;
		this.id = id;
		this.name = name;
		this.ISBN = ISBN;
		this.author = author;
		this.press = press;
		this.publishDate = publishDate;
		this.price = price;
		this.description = description;
		this.num = num;
	}
	
	@Override
	public String toString(){
		return name + "(" + author + ") " + press;
	}
	 
}